﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SF.Ucenter.door
{
    public partial class help_center : System.Web.UI.Page
    {
        protected string activePicStr = "",helpStr="";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                loadData();
            }
        }

        /// <summary>
        /// 绑定活动页面
        /// </summary>
        private void loadData()
        {
            BLL.sf_door_help_center indexBll = new BLL.sf_door_help_center();
            DataTable dt = indexBll.GetList(0, "", "sort asc").Tables[0];
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                helpStr += i == 0 ? "<li class='active'><a href='#'>" + dt.Rows[i]["name"] + "</a></li>" : "<li><a href='#'>" + dt.Rows[i]["name"] + "</a></li>";
                string remark = dt.Rows[i]["remarks"].ToString().Replace("&lt;", "<").Replace("&gt;", ">");
                activePicStr += i == 0 ? "<div><div class='solutionbox'>" + remark + "</div></div>" : "<div style='display: none;'><div class='solutionbox'>" + remark + "</div></div>";
            }
        }
    }
}